'use client'

import { Button } from '@/components/ui/button'

export default function GlobalError({
  error,
  reset,
}: {
  error: Error & { digest?: string }
  reset: () => void
}) {
  return (
    <html>
      <body className="w-screen h-screen">
        <div className="h-screen flex flex-col items-center justify-center">
          <h2 className="mb-2">Something went wrong!</h2>
          <Button onClick={() => window.location.reload()}>Try again</Button>
        </div>
      </body>
    </html>
  )
}
